package net.lainiao.other.demo1;

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * Created by Administrator on 2017/3/4.
 */
public class Main {
    public static void main(String[] args) {
        ThreadPoolExecutor threadPoolExecutor=(ThreadPoolExecutor) Executors.newCachedThreadPool();
        for (int i = 0; i <10 ; i++) {
            threadPoolExecutor.submit(new PersonTask());
        }
        threadPoolExecutor.shutdown();
    }
}
